package memorphic.core
{
	public class FunctionCallCommand implements ICommand
	{
		
		private var host:Object;
		private var func:Function;
		private var args:Array;
		
		public function FunctionCallCommand(host:Object, func:Function, ...args)
		{
			this.host = host;
			this.func = func;
			this.args = args;
		}

		public function execute():void
		{
			func.apply(host, args);
		}
		
	}
}